package dk.soegaard.simpleuddibrowser;

import javax.xml.transform.TransformerException;

import dk.soegaard.simpleuddibrowser.transport.Inquery;
import junit.framework.TestCase;

public class InquryTest extends TestCase {

	public void testInvokeValidBusinessId() throws TransformerException {
		Inquery inquery = new Inquery();
		String id = "uddi:0415e560-6d62-11de-a98f-77bb1111a97f";
		String getBusinessDetail = "<get_businessDetail xmlns:uddi=\"urn:uddi-org:api_v3\"><uddi:businessKey>"+id+"</uddi:businessKey></get_businessDetail>";
		inquery.invoke(getBusinessDetail);
	}
	
	public void testInvokeInValidBusinessId() throws TransformerException {
		Inquery inquery = new Inquery();
		String id = "uddi:0415e560-6d62-11de-a98f-77bb1111a97a";
		String getBusinessDetail = "<get_businessDetail xmlns:uddi=\"urn:uddi-org:api_v3\"><uddi:businessKey>"+id+"</uddi:businessKey></get_businessDetail>";
		inquery.invoke(getBusinessDetail);
	}
	
	
	
}
